package com.mioto.ld.module.file.service;

import com.mioto.ld.module.file.dao.FileDao;
import com.mioto.ld.module.file.model.FileInfo;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * @author mioto-qinxj
 * @date 2024/5/14
 * @desc
 */
@Service
public class FileService {

    @Resource
    private FileDao fileDao;

    public int batchInsert(List<FileInfo> fileInfos) {
        return fileDao.batchInsert(fileInfos);
    }

    public FileInfo findFileInfo(String id) {
        return fileDao.findFileInfo(id);
    }
}
